/*
using Atom.Core;

namespace GSN.Mail
{
    static class MessageFactory
    {
        public static Message parsePop3(string str)
        {
            Message msg = Message.createNew();

            msg.from = MsgFieldParser.parseField(str, "From:");
            msg.subject = MsgFieldParser.parseField(str, "Subject:");
            msg.messageId = MsgFieldParser.parseField(str, "Message-ID:");

            return msg;
        }

        public static Message parseGmailFeed(AtomEntry entry)
        {
            Message msg = Message.createNew();

            msg.from = string.Format("{0} <{1}>", entry.Author.Name, entry.Author.Email);
            msg.subject = entry.Title.Content;
            msg.messageId = entry.Id.ToString();
            msg.body = entry.Summary.Content;

            return msg;
        }
    }
}
*/